#include <iostream>
#include <stdlib.h>
#include <string>

using namespace std;

class Student{
public:
    Student(){}
    Student(string p,int chi,int mat,int eng):number(p),chinese(chi),math(mat),english(eng){}
    ~Student(){}

    void setStudent(string p,int chi, int mat,int eng);
    int average();
    bool pass();

private:
    string number;
    int chinese;
    int math;
    int english;
};

void Student::setStudent(string p,int chi,int mat, int eng)
{
    number=p;
    chinese=chi;
    math=mat;
    english=eng;
}

int Student::average()
{
    return(chinese+math+english)/3;
}

bool Student::pass()
{
    bool f=false;
    if(chinese>=60&&english>=60&&math>=60)
    {
        f=true;
    }
    return f;
}

int main()
{
    string name;
    int chinese,math,english,i;
    Student stu[2];
    
    for(i=0;i<2;i++)
    {
        cin>>name;
        cin>>chinese>>math>>english;
        stu[i].setStudent(name,chinese,math,english);
       cout<<"the"<<name<<"'s average is"<< stu[i].average()<<endl;
        if(stu[i].pass()) 
        {
                cout<<"pass"<<endl;
        }
        else cout<<"not pass"<<endl;
    }
 system("pause");

 return 0;
}
